OUT := server
SRCS := $(wildcard *.c)
OBJS := $(patsubst %.c, %.o, $(SRCS))

CC := gcc
CFLAGS = -Wall -g -lpthread

ALL: $(OUT)

$(RM): rm -rf

$(OUT): $(OBJS)
	gcc $^ -o $@ $(CFLAGS)

.PHONY: clean rebuild ALL



clean:
	$(RM) $(OUT) $(OBJS)
rebuild: clean ALL
	

